package com.tianquan.test.aop;/**
 * @author starsea
 * @date 2024-10-08 上午10:31
 */

import com.tianquan.miracle.annotation.Autowired;
import com.tianquan.miracle.annotation.Component;
import com.tianquan.miracle.context.ApplicationContext;
import com.tianquan.test.listener.Test;


/**
 *@BelongsProject: uploaddemo
 *@BelongsPackage: com.tianquan.miracledemo.test
 *@Author: tianquan
 *@CreateTime: 2024-10-08  10:31
 *@Description: 测试
 *@Version: 1.0
 */

@Component
public class OrderServiceImpl implements OrderService {

    @Autowired
    private ApplicationContext applicationContext;

    @Override
    public void addUser() {
        applicationContext.publishEvent(new Test(null));
        System.out.println("addUser");
    }


    @Override
    public void deleteUser() {
        System.out.println("deleteUser");
    }

}
